package com.hbnu.array;

public class DemoArray9 {
    public static void main(String[] args) {
        //水仙花数
        for(int i = 100;i<=999;i++){
            int n1=i%10,n2=i/10%10,n3=i/100;
            if(n1*n1*n1+n2*n2*n2+n3*n3*n3==i){
                System.out.println(i);
            }
        }
    }
}
